package com.kly.user.dto.chatter.request;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author linqu
 */
@Data
@Builder
public class ConversationReq implements Serializable {

    private static final long serialVersionUID = 122122123065675733L;
    /**
     * chatter用户
     */
    private String chatterUserCode;
    /**
     * 聊天用户:fromUserCode
     */
    private String fromUserCode;
    /**
     * 聊天用户:toUserCode
     */
    private String toUserCode;
    /**
     * 会话类型：1-单聊会话, 2-群组会话, 3-超级群会话 3-聊天室会话, 4-系统会话
     */
    private Integer conversationType;
    /**
     *最近一条消息发送时间
     */
    private Date latestTime;
    /**
     * 最近一条消息
     */
    private String latestMsg;
    /**
     * 1、进入会话、2、离开会话
     */
    private Integer type;
    /**
     * @see com.kly.user.enums.AppEnum
     * 1-meboo 2-mechat
     */
    private Integer source;

    private String sessionId;


}
